package com.hongkou.tvstation.common.utils;

import java.util.Iterator;
import java.util.Map;
import java.util.Set;

public class ParameterUtils {
	public static String convertParameterList(Map parameterMap) {
		StringBuffer sBuffer = new StringBuffer("");
		Set keys = parameterMap.keySet();
		for (Iterator iterator = keys.iterator(); iterator.hasNext();) {
			String key = (String) iterator.next();
			if ("pageNum".equals(key) || "pagesize".equals(key)
					|| "1".equals(key))
				continue;
			String[] mapValues = (String[]) parameterMap.get(key);
			if (mapValues != null) {
				for (String value : mapValues) {
					sBuffer.append("&");
					sBuffer.append(key);
					sBuffer.append("=");
					sBuffer.append(value);
				}
			}
		}
		return sBuffer.toString();
	}
}
